luci-app-acme: Validate domains
authorSergey Ponomarev <[email protected]>
Sat, 1 Jun 2024 15:47:50 +0000 (18:47 +0300)
committerToke Høiland-Jørgensen <[email protected]>
Tue, 7 Oct 2025 12:01:06 +0000 (14:01 +0200)
commit13da4252620885e73e379365c55385bfd9ffcb92
tree52edaa364e90bcd5543e39fa6f73da019a33d666
parent69d7840c25459d748cc690d159cd9482f7610464
luci-app-acme: Validate domains

We can't just use the datatype = "list(hostname)" because a domain may have a wildcard.
So check the domain by a simple regexp.
Check that DNS mode is used for wildcard.
Make the wildcard allowed only the beginning.
Add lowercase requirement.

Signed-off-by: Sergey Ponomarev <[email protected]>
applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js